/*
 * Created: 2022-08-27 10:41:32
 * Author : 涛涛涛
 */

import React, { FC } from 'react';
import { View, Text } from '@tarojs/components';
import { styled } from 'linaria/react';
import { useClassName } from '@/utils/index';
import OpeButton from './OpeButton/OpeButton';
import PriceAmount from './PriceAmount/PriceAmount';
export interface IProps extends ICompProps {}
Buy.defaultProps = {} as Partial<IProps>;
function Buy(props: IProps) {
    const { className, style } = props;
    const localClassName = useClassName('Buy', className);
    return (
        <RootView className={localClassName} style={style}>
            <PriceAmount></PriceAmount>
            <OpeButton icon={<>&#xe69d;</>} text="购物车" />
            <OpeButton icon={<>&#xe95b;</>} text="购买" />
        </RootView>
    );
}
export default React.memo(Buy as FC<IProps>);
const RootView = styled(View)`
    &.Buy {
    }
`;
